package com.spa.infrastructure.enums.dict.massagist;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.spa.infrastructure.annotation.SysDictEnumAnnotation;
import com.spa.infrastructure.enums.dict.IBaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;


@Getter
@AllArgsConstructor
@SysDictEnumAnnotation(key = "massagistType", desc = "技师类型")
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MassagistTypeEnum implements IBaseEnum {

    $10(10, "真实技师",1,0),
    $20(20, "虚拟技师",2,0),
    ;

    private Integer code;
    private String desc;
    private Integer sort;
    private Integer status;
    public static MassagistTypeEnum byCode(int code) {
        for (MassagistTypeEnum value : values()) {
            if (value.code == code) return value;
        }
        return null;
    }
}
